/*
 * @Description: 生活模块
 * @Author: tao.xie
 * @Date: 2019-06-11 10:27:57
 * @Last Modified by: tao.xie
 * @Last Modified time: 2019-06-14 17:28:40
 */
<template>
  <div
    :id="id"
    style="background:#fff;width:100%;"
  ></div>
</template>

<script>
export default {
  data() {
    return {
      id: 'city-life-wrapper',
      timer: null,
      pageId: window.citylifepageid
    }
  },
  mounted() {
    this.timer = setInterval(() => {
      // eslint-disable-next-line no-undef
      if (citylife4vue) {
        window.clearInterval(this.timer)
        window.isCordovaReady = true
        /* eslint-disable */
        let citylife = new citylife4vue.citylife()
        citylife.build(this.id, this.pageId)
      }
    }, 50)
  }
}
</script>

<style>
</style>
